package com.xiaoc.bulldozer.common;

import java.util.concurrent.locks.ReentrantLock;

public class ResourceLock extends ReentrantLock {

    /**
     * Serial ID
     */
    private static final long serialVersionUID = 4555716095858982579L;

    public ResourceLock() {
        this.startTime = System.currentTimeMillis();
    }

    /**
     * 开始时间
     */
    private long startTime;

    /**
     * @return the startTime
     */
    public long getStartTime() {
        return startTime;
    }

    /**
     * @param startTime the startTime to set
     */
    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

}